package com.jiyun.model.day12;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Transient;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author yangYingJie
 * @Date 2023/8/9
 * 11：27
 **/
@Data
@ToString
public class Rival {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String img;
    private String name;
    private Integer type;
    @TableField(value = "type_name")
    private String typeName;
    @TableField(value = "member_num")
    private Integer memberNum;
    private Integer status;
    private Integer plan;
    @TableField(value = "start_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date startTime;
    @TableField(value = "end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date endTime;
    private Integer sort;
    @TableField(value = "entry_name")
    private String entryName;
    @TableField(value = "rival_member")
    private Integer rivalMember;
    @TableField(value = "mark_num")
    private String markNum;
    private String remark;

    @TableField(exist = false)
    @Transient
    private String tids;
    @TableField(exist = false)
    @Transient
    private String tidss;
    @TableField(exist = false)
    @Transient
    private String teamIds;
}
